package com.fr.tree;

public class TreeTest1 {

    public static void main(String[] args) {
        GroupTree node = new GroupTree();
        node.setGroupId(1L);
        fill(node);
        System.out.println(node);
    }

    private static void fill(GroupTree node) {
        GroupTree gt = new GroupTree();
        gt.setGroupId(2);
        GroupTree g = new GroupTree();
        g.setGroupId(3);
        g.addSubTree(node);
        g.addSubTree(gt);
        node = g;
    }
}
